﻿using TMPro;
using UnityEngine;
using UnityEngine.UI;
namespace DTFramework.UI
{
    /// <summary>
    /// 加载界面
    /// </summary>
    public class UILoadingForm : MonoBehaviour
    {
        [SerializeField]protected TextMeshProUGUI m_TextTip;
        [SerializeField]protected TextMeshProUGUI m_TextProgress;
        [SerializeField]protected Slider m_SldProgress;

        /// <summary>
        /// 设置加载进度
        /// </summary>
        /// <param name="value"></param>
        public void SetProgress(float value,string content=null)
        {
            m_SldProgress.value = value;
            m_TextProgress.text = value.ToString("p1");
            m_TextProgress.text = content;
        }

    }
}